import axios from 'axios'
const ajax =axios.create({
    baseURL: 'http://localhost:21021/',
    timeout: 30000
});
ajax.interceptors.request.use((config) => {
    //console.log(config);
    return config;
},(error) => {
    //console.log(error);
    return Promise.reject(error)
})

ajax.interceptors.response.use((respon) => {
    //console.log(respon);
    return respon;
}, (error) => {
    //console.log(error);
    return Promise.reject(error);
})
export default ajax;
